<?php
/* $Id: TeacherBBCode.class.php 388 2009-09-27 15:57:48Z TobiasH87 $ */
require_once(WCF_DIR.'lib/data/message/bbcode/BBCodeParser.class.php');
require_once(WCF_DIR.'lib/data/message/bbcode/BBCode.class.php');

class TeacherBBCode implements BBCode {

	public function getParsedTag($openingTag, $content, $closingTag, BBCodeParser $parser) {
		if ($parser->getOutputType() == 'text/html') {
			WCF::getTPL()->assign(array('content' => $content));
			return WCF::getTPL()->fetch('teacherBBCodeTag');
		}
		else if ($parser->getOutputType() == 'text/plain') {
			return $content;
		}		
	}
}
?>